/**   
* @Title: IndexController.java
* @Package me.cloud
* @Description: TODO
* @author xaoyaoyao
* @date Dec 21, 2018 4:17:52 PM
* @version V1.0   
*/
package me.cloud.controller;

import java.util.Collections;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName: IndexController
 * @Description: TODO
 * @author xaoyaoyao
 * @date Dec 21, 2018 4:17:52 PM
 * 
 */
@Controller
public class IndexController {

	@RequestMapping("/hello")
	@ResponseBody
	public Map<String, String> hello() {
		return Collections.singletonMap("message", "hello world!");
	}

}
